feat: enhance regex tester with interactive playground features#126
Merged
feat: enhance regex tester with interactive playground features#126
Conversation
- Add toggleable pattern flags (g, i, m, s, u, y) with tooltips - Add preset regex patterns (email, URL, phone, date, IP, hex color, HTML tag, credit card) - Add real-time pattern explanation with color-coded components - Add capture group visualization with CSS box model style - Add match statistics dashboard (total matches, unique, avg length, exec time) - Add collapsible regex cheat sheet with click-to-insert functionality - Enhance RegexHighlightText with hover effects and match info tooltips - Add Tooltip component via shadcn/ui Co-Authored-By: petar@jam.dev <pekiseven@gmail.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: petar@jam.dev <pekiseven@gmail.com>
Deploying jam-dev-utilities with
|
| Latest commit: |
807535f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://65116c04.jam-dev-utilities.pages.dev |
| Branch Preview URL: | https://devin-1764774676-regex-playg.jam-dev-utilities.pages.dev |
- Add gm flags to email preset pattern so it matches emails on each line - Add Clear button to reset pattern, test string, result, and flags Co-Authored-By: petar@jam.dev <pekiseven@gmail.com>
- Replace Radix Tooltip with HoverCard to fix content not updating when moving mouse quickly - Add @radix-ui/react-hover-card dependency via shadcn - Unify hover card styles: monospace font only for code values (match indices, access patterns) - Apply consistent styling across all regex components Co-Authored-By: petar@jam.dev <pekiseven@gmail.com>
- Add local-first history storing last 10 regexes with localStorage - Implement smart history tracking (only save modified patterns, not preset clicks) - Add 3 creative history features: favorites, pattern notes, and match stats preview - Move capture groups from tabs to collapsible section in main card - Replace Capture Groups tab with History tab - Standardize all hover card fonts to sans-serif - Make layout wider (max-w-4xl) - Add localStorage note to UI Co-Authored-By: petar@jam.dev <pekiseven@gmail.com>
- Remove history tab and all history-related code - Keep other improvements: wider layout, collapsible capture groups, sans-serif fonts Co-Authored-By: petar@jam.dev <pekiseven@gmail.com>
peckz
approved these changes
Dec 8, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: enhance regex tester with interactive playground features
Summary
Transforms the basic regex tester into an interactive playground inspired by regexer. The enhancement adds several features to make regex more accessible to junior developers:
Core Features:
Technical Changes:
components/regex/regex-tester.utils.tswith pattern parsing, explanation, and stats functions@radix-ui/react-hover-cardand@radix-ui/react-tooltipdependencies via shadcnLayout & UX Improvements:
max-w-2xltomax-w-4xlfor more breathing roombg-mutedbackground highlighting for code valuesgmflags for multi-line matchingReview & Testing Checklist for Human
/(a)(b)/gwith test stringab ab, expand the "Capture Groups" section, verify visualization displays correctlyRecommended test plan:
Notes
Link to Devin run: https://app.devin.ai/sessions/93dfd4f1aa4649e7917bfc1f71f62694
Requested by: @peckz